<table class="table table-responsive" id="categories-table">
    <thead>
        {{--<th>ID</th>--}}
        <th>姓名</th>
        {{--<th>头像</th>--}}
        <th>性别</th>
        <th>省</th>
        <th>市</th>
        <th>区</th>
        <th>地址</th>
        <th>公司名称</th>
        <th>状态</th>
        <th>手机</th>
        <th>角色</th>
        <th>创建时间</th>
        <th colspan="3">操作<th>
    </thead>
    <tbody>
    @foreach($users as $user)
        <tr>
{{--            <td>{!! $user->id !!}</td>--}}
            <td>{!! $user->name !!}</td>
{{--            <td>{!! $user->avatar_url  !!}</td>--}}
            <td>{!! $user->sex==1?'男':'女' !!}</td>
            <td>{!! isset($ps[$user->province])?$ps[$user->province]->text:'' !!}</td>
            <td>{!! isset($ps[$user->city])?$ps[$user->city]->text:'' !!}</td>
            <td>{!! isset($ps[$user->district])?$ps[$user->district]->text:'' !!}</td>
            <td>{!! $user->address !!}</td>
            <td>{!! $user->company_name !!}</td>
            <td>{!! $user->status==1?'已审核':'未审核' !!}</td>
            <td>{!! $user->phone !!}</td>
            <td>
            @if($user->roles)
                @foreach($user->roles as $role)
                    {{ $role->title }}
                    @if ($loop->remaining!=0)
                        ,
                    @endif
                @endforeach
            @endif
            </td>
            <td>{!! $user->created_at !!}</td>
            <td>
                {{--{!! Form::open(['route' => ['categories.destroy', $user->id], 'method' => 'delete']) !!}--}}
                {{--<div class='btn-group'>--}}
                    {{--<a href="{!! route('categories.show', [$user->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>--}}
                    <a href="{!! route('users.edit', [$user->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
                    {{--{!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}--}}
                {{--</div>--}}
                {{--{!! Form::close() !!}--}}
            </td>
        </tr>
    @endforeach
    </tbody>
</table>